//
//  SomeViewController.m
//  YXKitOC
//
//  Created by 李鹏飞 on 2020/1/20.
//  Copyright © 2020 张鑫. All rights reserved.
//

#import "ViewController2.h"
#import "ViewController3.h"
#import "YXKitOC.h"

@interface ViewController2 ()

@end

@implementation ViewController2

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIButton *btn = [UIButton yx_creatWithMinX:100 minY:100 title:@"禁用侧滑" fontSize:19 titleColor:nil block:^(id  _Nonnull sender) {
        [self func:sender];
    }];
    [self.view addSubview:btn];
}
- (void)func:(UIButton *)sender {
    ViewController3 *vc = [[ViewController3 alloc] init];
    [self.navigationController yx_pushViewController:vc];
}
- (BOOL)isPanBackGestureEnable {
    return NO;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
